#ifndef HISTWIDGET_H
#define HISTWIDGET_H

#include <QWidget>

class HistogramPainter : public QWidget
{
    Q_OBJECT
public:
    explicit HistogramPainter(QWidget *parent = 0);
    void SetHistogram(float *histogram);
    void SetThreshold(int i);

protected:
    void paintEvent(QPaintEvent *);

private:
    float *m_Histogram;
    QImage image;
    int threshold;
    void paint(QImage& theImage);

signals:

public slots:

};

#endif // HISTWIDGET_H
